package com.cencat.framework.core.service;


import com.cencat.framework.core.dto.PageQuery;
import com.cencat.framework.core.dto.PageResult;
import com.cencat.framework.core.entity.TenantBaseEntity;

import java.util.List;

public interface TenantBaseService<T extends TenantBaseEntity> extends BaseService<T> {
    
    List<T> listByTenantId(Long tenantId);
    
    List<T> listByTenantCode(String tenantCode);
    
    PageResult<T> pageByTenant(PageQuery pageQuery, Long tenantId);
}